/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "项目来源表",TableName = "tb_project_sourceinfo")]
    public partial class tb_project_sourceinfo:BaseEntity
    {
       /// <summary>
       ///项目来源表主键
       /// </summary>
       [Key]
       [Display(Name ="项目来源表主键")]
       [MaxLength(64)]
       [Column(TypeName= "nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Id { get; set; }

       /// <summary>
       ///项目来源编号
       /// </summary>
       [Display(Name ="项目来源编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string dicKey { get; set; }

       /// <summary>
       ///项目来源名称
       /// </summary>
       [Display(Name ="项目来源名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string dicValue { get; set; }

       /// <summary>
       ///上级编号
       /// </summary>
       [Display(Name ="上级编号")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string dicCode { get; set; }

        /// <summary>
        ///排序编号
        /// </summary>
        [Display(Name = "排序编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? dicSort { get; set; } = 0;

       /// <summary>
       ///项目来源状态
       /// </summary>
       [Display(Name ="项目来源状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int dicStatus { get; set; }

       /// <summary>
       ///项目id
       /// </summary>
       [Display(Name ="项目id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string productId { get; set; }

       /// <summary>
       ///项目承办单位Id
       /// </summary>
       [Display(Name ="项目承办单位Id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string orgId { get; set; }

       /// <summary>
       ///项目承办名称
       /// </summary>
       [Display(Name ="项目承办名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string orgName { get; set; }

       /// <summary>
       ///项目名称
       /// </summary>
       [Display(Name ="项目名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string productName { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string? creator { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public DateTime createDate { get; set; } = DateTime.Now;

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string? modifer { get; set; }

       /// <summary>
       ///最后修改时间
       /// </summary>
       [Display(Name ="最后修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modiferTime { get; set; }

       
    }
}